#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include "md5.h"

int main(int argc, char *argv[])
{
	int i = 0;
	MD5_Context md5;
	
	unsigned char encrypt[200];
	unsigned char decrypt[17];
	printf("Enter the string\n");
	scanf("%s",encrypt);
	initMD5(&md5);
	updateMD5(&md5,encrypt,strlen(encrypt));
	finishMD5(decrypt,&md5);
	printf("the Encrypt string:  %s\n", encrypt);
	for(i = 0; i < 16; i++)
	{
		printf("%2x", decrypt[i]);
	}
	printf("\n\n\n\n\n finish encrypt\n");
}